gtkentry: Call get_*_size() vfuncs unconditionally
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 2 Dec 2013 11:03:28 +0000 (11:03 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
commit7479133753de0f7827bf74cf8b554f266af69d20
tree05ae26f36094fa15375db5b15845eafd0c404b79
parent0282714d86729a7b476fe7462bb85d9ca7ca584d
gtkentry: Call get_*_size() vfuncs unconditionally

These vfuncs cannot be NULL: implementations are provided by GtkEntry,
and subclasses should not set them to NULL. Instead of conditionalising
the calls to the vfuncs, assert that they’re set and call them
unconditionally.

This prevents the possibility of a subclass setting the vfunc to NULL
and then a gtk_entry_get_*_size() call returning undefined values in its
out variables.

https://bugzilla.gnome.org/show_bug.cgi?id=712760
gtk/gtkentry.c